import { createRouter, createWebHistory } from 'vue-router';
import Dashboard from '../views/Dashboard.vue';

const routes = [
    {
        path: '/',
        name: 'Dashboard',
        component: Dashboard
    },
    // 如果后续要加其他页面，可以继续添加路由
    // {
    //   path: '/about',
    //   name: 'About',
    //   component: () => import('../views/About.vue')
    // }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
